
package com.huaweicloud.haydn.delivercore.agent.dto.haydn;

import lombok.Data;
import lombok.experimental.Accessors;

import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.Date;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;

@Data
@Accessors(chain = true)
public class ExcelParseDto implements Comparable<ExcelParseDto> {

    private String name;

    private InputStream stream;

    private Date genDate;

    private MultipartFile mFile;

    private ZipFile zipFile;

    private ZipEntry zipEntry;

    @Override
    public int compareTo(ExcelParseDto o) {
        if (genDate.before(o.genDate)) {
            return 1;
        } else {
            return -1;
        }
    }
}
